module teapo.app.tests {
export class TestCase {
state = ko.observable(TestCase.State.NotStarted);
runtime = ko.observable<number>(null);
constructor() {
}
start() {
if (this.state() !== TestCase.State.NotStarted)
throw new Error('Test case already started (' + TestCase.State[this.state()] + ').');
}
}
export module TestCase {
export enum State {
NotStarted, Running, Succeeded, Failed}
}
}